package ru.spbu.math.seabattle.client.jms.gui;

import java.awt.Component;
import java.awt.Container;
import java.awt.LayoutManager;

public class ExtendedContainer {

	private Container parent;
	
	public ExtendedContainer(Container container) {
		
		parent = container;
	}
	
	public void setLayout(LayoutManager m) {
		
		parent.setLayout(m);
	}
	
	public void add(IComponent comp) {
		
		comp.addToContainer(parent);
	}
	
	public void add(Component comp) {
		parent.add(comp);
	}
}
